package my.test.groups.common;

/**
 * @Author 许玉康
 * @Date 2019/9/20 16:12
 */
public class Leaf implements ILeaf {

    //树枝节点的名称
    private String name = "";
    //树枝节点的职位
    private String position = "";
    //树枝节点的薪水
    private int salary = 0;

    public Leaf(String name, String position, int salary) {
        this.name = name;
        this.position = position;
        this.salary = salary;
    }

    @Override
    public String getInfo() {
        return "名称:" + this.name + "\t职位:" + this.position + "\t薪水" + this.salary;
    }

}
